package com.heima.model.behavior.pojos;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("comment_like")
public class CommentLikeDoc {
    //ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    //用户ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer userId;
    //点赞的评论ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commentId;
}
